package com.wmeimob.fastboot.jiubei.service;


import com.wmeimob.fastboot.core.service.CommonService;
import com.wmeimob.fastboot.jiubei.dto.ShopCartDTO;
import com.wmeimob.fastboot.jiubei.entity.ShopCart;

import java.util.List;

/**
 * @author wjt
 * @version 1.0
 * @ClassName ShopCartService
 * @Description 购物车
 * @Date Thu Aug 20 10:06:35 CST 2020
 **/
public interface ShopCartService extends CommonService<ShopCart> {

    /**
     * 查询购物车
     *
     * @param shopCart
     * @return
     */
    default List<ShopCartDTO> queryShopCartList(ShopCart shopCart) {
        throw new UnsupportedOperationException();
    }

    /**
     * 查询购物车中商品总数
     *
     * @param shopCart
     * @return
     */
    default Integer queryCount(ShopCart shopCart) {
        throw new UnsupportedOperationException();
    }

    /**
     * 添加购物车
     *
     * @param shopCart
     */
    default ShopCart addShopCart(ShopCart shopCart) {
        throw new UnsupportedOperationException();
    }

    /**
     * 删除购物车数据
     *
     * @param shopCart
     */
    default int deleteShopCart(ShopCart shopCart) {
        throw new UnsupportedOperationException();
    }

    /**
     * 清除购物车
     * @param userId
     * @param goodsIdList
     * @param skuNoIds
     */
    default void orderAfterClear(Integer userId, List<Integer> goodsIdList, List<String> skuNoIds){
        throw new UnsupportedOperationException();
    }
}
